package com.we823.project.repository.service;

import java.io.Serializable;
import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;

public interface BaseService<T extends Serializable, ID> {
	public T save(T entity);
	public T update(T entity);
	public T findOne(ID key);
	public List<T> findAll();
	public List<T> findAll(Sort sort);
	public Page<T> findAll(Pageable pageable);
	public void delete(ID key);
}
